package com.wanglemei.edm.dao.impl;

import java.util.List;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import com.wanglemei.edm.dao.IUserDao;
import com.wanglemei.edm.user.model.User;

public class UserDaoImpl extends SqlSessionDaoSupport implements IUserDao
{

	@Override
	public int addUser(User user)
	{
		return this.getSqlSession().insert("addUser",user);
	}

	@Override
	public List<User> getUsers()
	{
		return this.getSqlSession().selectList("getUsers");
	}
	
	public void testTask()
	{
		
		 System.out.println("--------------------------");
	}
	
	
	public void springTask()
	{
		System.out.println("springTask-------------exeute");
	}

}
